#ifndef DETECTOR_GLOBAL_H
#define DETECTOR_GLOBAL_H

#include <QMetaType>
#include <QtCore/qglobal.h>

#if defined(DETECTORPLUGIN_LIBRARY)
#  define DETECTORPLUGINSHARED_EXPORT Q_DECL_EXPORT
#else
#  define DETECTORPLUGINSHARED_EXPORT Q_DECL_IMPORT
#endif

enum DetectorState {
    DetInitializing,
    DetInited,
    DetInitFailed,
    DetCaptureStarting,
    DetCaptureStarted,
    DetCaptureStartFailed,
    DetCapturing,
    DetCaptureFailed,
    DetExposureReady,
    DetCaptureAborting,
    DetCaptureAborted,
    DetCaptureAbortFailed,
    DetImageReady,
    DetIeImageReady,
    DetFreeing,
    DetFreed,
    DetFreeFailed,
    DetDisconnected,
    DetTemperature,

    DetError,
};

enum GainCorrect {
    NoGainCorr,
    Gain30Corr,
    Gain60Corr,
};

Q_DECLARE_METATYPE(DetectorState)
static int ds = qRegisterMetaType<DetectorState>("DetectorState");

#endif // DETECTOR_GLOBAL_H
